package com.onlineclass.userserver.service.impl;

import com.onlineclass.beas.User;
import com.onlineclass.beas.UserInfo;
import com.onlineclass.userserver.mapper.UserMapper;
import com.onlineclass.userserver.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements IUserService {
    @Autowired
    UserMapper mapper;


    @Override
    public User login(User user) {
        return mapper.selectMyByAA(user);
    }

    @Override
    public UserInfo selectUserInfo(User user) {
        return mapper.selectUserInfo(user);
    }
}
